<template>
  <div>
    <myhead title="电影"></myhead>
    <div v-if="city">
      {{city.name}}
    </div>
  </div>
</template>
<script>
export default {
  name: "movie",
  data() {
    return {
      list: [],
    };
  },
  mounted() {
    if (this.city) {
      //请求数据，请求轮播 数据
    } else {
      this.$dialog.alert({
        title: '选择城市',
        message: "你尚未定位城市,请前往选择",
      }).then(() => {
        // on close
        this.tiao("city");
      });
      
    }
    this.$ajax
      .getMaiData(
        {
          cityId: 420100,
          pageNum: 1,
          pageSize: 10,
          type: 1,
          k: 4858465,
        },
        {
          //   "X-Host": "mall.cfg.float-window.banner"
          "X-Host": "mall.film-ticket.film.list",
          //   "X-Host": "mall.film-ticket.film.info",
        }
      )
      .then((res) => {
        console.log(res);
      });
  },
};
</script>